package com.vader.springcloud.service.impl;

import com.vader.springcloud.dao.PaymentDao;
import com.vader.springcloud.entities.mapper.PaymentDO;
import com.vader.springcloud.service.PaymentService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * @author kaivader
 */
@Service
public class PaymentServiceImpl implements PaymentService {

    @Resource
    private PaymentDao paymentDao;

    @Override
    public PaymentDO queryById(Long id) {
        return paymentDao.queryById(id);
    }

    @Override
    public List<PaymentDO> queryAllByLimit(int offset, int limit) {
        return null;
    }

    @Override
    public int insert(PaymentDO paymentDO) {
        return paymentDao.insert(paymentDO);
    }

    @Override
    public int update(PaymentDO paymentDO) {
        return -1;
    }

    @Override
    public boolean deleteById(Long id) {
        return false;
    }
}
